home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98c.txt / 000005_icon-group-sender _Thu Sep 10 07:46:00 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  3KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id HAA15772
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Thu, 10 Sep 1998 07:45:59 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA30480; Thu, 10 Sep 1998 07:45:32 -0700
  7. Message-Id: <35F73155.1816@gte.net>
  8. Date: Wed, 09 Sep 1998 20:54:29 -0500
  9. From: MJE <evans@gte.net>
  10. Reply-To: evans@gte.net
  11. Organization: None
  12. X-Mailer: Mozilla 3.01 (Win95; I)
  13. Mime-Version: 1.0
  14. To: icon-group@optima.CS.Arizona.EDU
  15. Subject: Context Switching
  16. References: <35F551C0.E6DA1515@ix.netcom.com> <6t6nie$a18@hawk.CS.Arizona.EDU>
  17. Content-Type: text/plain; charset=us-ascii
  18. Content-Transfer-Encoding: 7bit
  19. Content-Transfer-Encoding: 7bit
  20. Content-Transfer-Encoding: 7bit
  21. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  22. Content-Transfer-Encoding: 7bit
  23. Status: RO
  24.  
  25. This is one aspect of Icon I don't like.  Why does there have to be
  26. custom push/pop assembly for context switching?  Can't another (safer,
  27. more portable) form of context-switching be used?
  28.  
  29. Seems to me there should be a better way, but maybe I don't really
  30. understand how the context switching works in Icon.
  31.  
  32. Best regards,
  33.  
  34. Mark
  35.  
  36.  
  37.  
  38.  
  39. Gregg Townsend wrote:
  40. > David Feustel  <feustel@ix.netcom.com> wrote:
  41. > > Are there any other Icon features besides coroutines that would
  42. > > preclude an Ansi C version of the commandline version of Icon?
  43. > Actually, it would be possible to write a nearly full version of Icon
  44. > using ANSI C, including co-expressions.  Only a few things around the
  45. > fringes (such as dynamic loading, pipes, and &host) can't be done in
  46. > strict ANSI C.
  47. > The current C implementation, though, has several other non-ANSI aspects.
  48. > The system-dependent context switch code for co-expressions is one, but
  49. > the memory allocation and garbage collection code is more significant.
  50. > Several assumptions about pointer behavior exceed the promises of ANSI C,
  51. > and these pervade the whole run-time system.
  52. >    ---------------------------------------------------------------------------
  53. >    Gregg Townsend              Gould-Simpson Building   gmt@cs.arizona.edu
  54. >    Staff Scientist             1040 E. 4th St.          32 13 45N  110 57 16W
  55. >    Dept. of Computer Science   PO Box 210077            tel: +1 520 621 4325
  56. >    The University of Arizona   Tucson, AZ  85721-0077   fax: +1 520 621 4246
  57.  
  58.  
  59.